﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

@model dynamic

@{
    Layout = null;
    int i = 0;
    //@(@item.nIndEleGrupo == 1 ? "No" : "Si")
}<br />

<table width="100%" border="1" cellpadding="2" cellspacing="0"  class="tablaDetalle">
    <tr class="tituloDetalleBlue_1" align="center">
        <td style="width:15px;">#</td>                                    
        <td align="left">Nombre Elemento</td>
        <td align="left" style="width:160px;">Nombre Corto</td>
        <td style="width:40px;">Grupo</td>
        <td style="width:40px;">Id</td>                  
        <td style="width:80px;">Fec. Ini. Vig.</td>
        <td style="width:80px;">Fec. Fin Vig.</td>
        <td style="width:80px;">Agregar</td>
                                           
    </tr> 
@foreach (var item in Model)
{
    i++;    
    <tr class="@(i%2 != 0 ? "odd" : "even")" align="center" id="trDet2@(i)">
        <td>@i</td>
        <td align="left">@item.vNomDetalle</td>
        <td align="left">@item.vNomCorto</td>
        <td>@(@item.nIndEleGrupo == 1 ? "No" : "Si")</td>
        <td>@String.Format("{0}", item.nIdeDetalle)</td>                      
        <td>@String.Format("{0:dd/MM/yyyy}",item.dFecIniVig)</td>
        <td>@String.Format("{0:dd/MM/yyyy}", item.dFecFinVig)</td>
        <td><span class="letramensajes"><img src="@Url.Content("~/images/check.jpg")" class="lupita1"  onclick="javascrip:addItemAlGrupo(this,'@item.nIdeDetalle');" alt="AGREGAR ELEMENTO" /></span></td>      
    </tr>
}
</table>
